package main

/**
 * 反转字符串
 * @param str string字符串
 * @return string字符串
 */
func solve(str string) string {
	// write code here
	bytes := []byte(str)
	for i, l := 0, len(bytes); i <= l/2; i++ {
		tmp := str[i]
		bytes[i] = str[l-1-i]
		bytes[l-1-i] = tmp
	}
	return string(bytes)
}
